import React,{Component} from 'react';
import ReactDOM from 'react-dom';
import './assets/rem'
import './assets/reset.css'
import App from './App';
import reportWebVitals from './reportWebVitals';
//确定路由模式
import {BrowserRouter} from 'react-router-dom'
//蚂蚁的组件
import 'antd/dist/antd.css';
//全局引入axios
import http from '../src/api/axios'
Component.prototype.$http=http;
Component.prototype.$url='http://localhost:3000'


ReactDOM.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
